package org.example.Project;


import org.example.Project.Service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


//构建Results类
//添加demo4j依赖
//准备数据xml格式
@RestController
public class project {

    @Autowired
    Service s;

    @RequestMapping("/requestList")
    public Results requestList(){

        //响应数据
        return new Results(1,"成功",s.service());
    }
}
